package com.imc.beans;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * ClusterFile entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "cluster_file", catalog = "imcdbserver")
public class ClusterFile implements java.io.Serializable {

	// Fields

	private Integer fileid;
	private Integer majorid;
	private Integer minorid;
	private String filename;
	private Integer fileuploader;
	private long filesize;
	private String uploaddate;
	private String guidname;

	// Constructors

	/** default constructor */
	public ClusterFile() {
	}

	/** minimal constructor */
	public ClusterFile(Integer majorid, Integer minorid, String filename) {
		this.majorid = majorid;
		this.minorid = minorid;
		this.filename = filename;
	}

	/** full constructor */
	public ClusterFile(Integer majorid, Integer minorid, String filename,
			Integer fileuploader, long filesize, String uploaddate,
			String guidname) {
		this.majorid = majorid;
		this.minorid = minorid;
		this.filename = filename;
		this.fileuploader = fileuploader;
		this.filesize = filesize;
		this.uploaddate = uploaddate;
		this.guidname = guidname;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "fileid", unique = true, nullable = false)
	public Integer getFileid() {
		return this.fileid;
	}

	public void setFileid(Integer fileid) {
		this.fileid = fileid;
	}

	@Column(name = "majorid", nullable = false)
	public Integer getMajorid() {
		return this.majorid;
	}

	public void setMajorid(Integer majorid) {
		this.majorid = majorid;
	}

	@Column(name = "minorid", nullable = false)
	public Integer getMinorid() {
		return this.minorid;
	}

	public void setMinorid(Integer minorid) {
		this.minorid = minorid;
	}

	@Column(name = "filename", nullable = false)
	public String getFilename() {
		return this.filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	@Column(name = "fileuploader")
	public Integer getFileuploader() {
		return this.fileuploader;
	}

	public void setFileuploader(Integer fileuploader) {
		this.fileuploader = fileuploader;
	}

	@Column(name = "filesize")
	public long getFilesize() {
		return this.filesize;
	}

	public void setFilesize(long filesize) {
		this.filesize = filesize;
	}

	@Column(name = "uploaddate", length = 30)
	public String getUploaddate() {
		return this.uploaddate;
	}

	public void setUploaddate(String uploaddate) {
		this.uploaddate = uploaddate;
	}

	@Column(name = "guidname")
	public String getGuidname() {
		return this.guidname;
	}

	public void setGuidname(String guidname) {
		this.guidname = guidname;
	}

}